-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for standard Forwarded header #4266
Conversation
these (see ":doc:`/components/http_foundation/trusting_proxies`"). | ||
The code for doing this will need to live in your front controller (e.g. ``web/app.php``). | ||
|
||
.. versionadded:: 2.6 | ||
``Forwarded`` header support was introduced in Symfony 2.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this shouldn't be the last section on the page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xabbuh What would you advise? Moving those two lines above the paragraph?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move it below the first paragraph you modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay indeed it makes more sense at the top.
👍 |
Most reverse proxies store information on specific ``X-Forwarded-*`` headers. | ||
But if your reverse proxy uses non-standard header names, you can configure | ||
Although `rfc7239`_ recently defined a standard ``Forwarded`` header to disclose | ||
all proxy information, most reverse proxies stores information on non standard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stores -> store
@@ -90,9 +95,12 @@ other information. | |||
My Reverse Proxy Uses Non-Standard (not X-Forwarded) Headers | |||
------------------------------------------------------------ | |||
|
|||
Most reverse proxies store information on specific ``X-Forwarded-*`` headers. | |||
But if your reverse proxy uses non-standard header names, you can configure | |||
Although `rfc7239`_ recently defined a standard ``Forwarded`` header to disclose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be "RFC 7239"
I forgot to review this one and only commented on @cordoval's comment. I've added 2 minor comments, once those are fixed, Ill label it as "finished". Thanks! |
Hi @tony-co. Do you have time to update this PR? Don't worry if you don't have time soon, there will be a doc sprint day on May 23rd. During that day, we want to finish as much PRs as possible. Maybe you can join in then or we can hand it over to someone else on that day if you want :) |
This PR has been completed in #5382. |
…aviereguiluz) This PR was merged into the 2.3 branch. Discussion ---------- Added support for standard Forwarded header | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7+ | Fixed tickets | - This PR finishes the work made by @tony-co in #4266. Commits ------- 8928049 Fixed a minor grammar issue 319c081 Fixed a minor grammar issue ac3689b Added support for standard Forwarded header d452137 Added support for standard Forwarded header
Refs symfony/symfony#11379